﻿using _4;

class Program
{
    static void Main()
    {
        AlarmClock alarmClock = new AlarmClock();

        alarmClock.Tick += (sender, e) =>
        {
            Console.Write("\nTick");
        };

        alarmClock.Alarm += (sender, e) =>
        {
            Console.WriteLine("\nAlarm! Wake up!");
        };


        alarmClock.Start();
    }
}